package xwj.example.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xwj
 * @since 2022-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type=IdType.ASSIGN_ID)
    private Long id;

    private String category;

    private String description;

    private String name;

    private Float price;

    private String product_type;

    private Float stock_quantity;

    @TableField(exist = false)
    private List<Supplier> supplierList=new ArrayList<>();
}
